package com.kma.summer2012.client.events;


import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: HP
 * Date: 06.03.13
 * Time: 20:48
 * To change this template use File | Settings | File Templates.
 */
public class FillViewMapEvent extends GwtEvent<FillViewMapEvent.FillViewMapEventHandler> {
    private static Type<FillViewMapEventHandler> TYPE = new Type<FillViewMapEventHandler>();

    public Date date;

    public FillViewMapEvent(Date date) {
        this.date = date;
    }

    @Override
    public Type<FillViewMapEventHandler> getAssociatedType() {
        return TYPE;
    }

    public static Type<FillViewMapEventHandler> getType() {
        return TYPE;
    }

    @Override
    protected void dispatch(FillViewMapEventHandler importRequestEventHandler) {
        importRequestEventHandler.onFillViewMap(this);
    }

    public interface FillViewMapEventHandler extends EventHandler {
        void onFillViewMap(FillViewMapEvent event);
    }
}
